//add cicd part
var ref = [
    'ui.bootstrap',
    'cicd.service',
    'developprocess.service',
    'projectstart.service',
    'cicd.projectstart',
    'onlinedelivery.service',
    'acceptance.service',
    'cicd.projectselect',
    'cicd.config.manage',
    'cmss.filter'
];
var mainApp = angular.module('mainApp',ref);

var ref0 = [
    'ui.bootstrap',
    'datashow.service',
    'cicd.datashow',
    'cmss.filter'
];
var showApp = angular.module('showApp',ref0);

var ref1 = [
    'ui.bootstrap',
    'cmss.service',
    'cmss.service.common',
    'cmss.filter',
    'cmss.product',
    'cmss.project',
    'cmss.setting',
    'cmss.suite'
];
var actionApp = angular.module('actionApp',ref1);

var reportRef = ['cicd.report','report.service','projectstart.service'];

var reportApp = angular.module('reportApp',reportRef);

var pipeline = angular.module('com.dcos.app', [
    'ngAnimate',  // 动画效果
    'ngResource', // 访问REST对象
    'ui.router',  // 第三方的路由访问器
    'ui.bootstrap', // 第三方界面库
    'ngMessages',
    'ui.select',
    'ngMaterial',
    'ngCookies',
    "ngFileUpload",
    'ngScrollbar',
    'angular-json-editor'
]);

//绑定object的ID
//var data = '0';
//mainApp.provider('objectIdService', function () {
//var data = '0';
//var f = function (objectId) {
//    if (objectId != '0')
//        {
//            data = objectId;
//        }
//    return data;
//};
//this.$get = function () {
//    return f;
//};
//});

//该项目是否是新建项目还是已有项目
//mainApp.provider('isBuildObjectService', function () {
//    var data = true;
//    var f = function (isBuild,isRead) {
//        if(isRead == false){
//            data = isBuild;
//        }
//        return data;
//    };
//    this.$get = function () {
//        return f;
//    };
//});
